Redirect PURLs
If you want to immediately redirect PURL visitors to a different website, follow the steps below...
If you are using instantPURL to host your landing page on our server, you'll need to first request FTP access.
1. Locate the index.php File
Login to your server via FTP and locate the index.php file located in the purlpage_yourcampaignname folder. (yourcampaignname will obviously be your campaign name).
2. Add the Redirect Code
If you open the index.php file, you will notice some PHP "PURL CODE" at the top of the file that looks similar to this:
$data = @file_get_contents('http://purlapi.com/lp/index.php?ID='.$_GET["ID"].'&name='.$_GET["name"].'&page='<br>...<br>{ echo $visitor->{'login'}; exit; }
All you need to do is add the following line below the code shown above.
header( 'Location: http://www.yoursite.com' ) ;
You would obviously replace yoursite.com with your domain name.
You'll end up with something like this:
$data = @file_get_contents('http://purlapi.com/lp/index.php?ID='.$_GET["ID"].'&name='.$_GET["name"].'&page='<br>...<br>{ echo $visitor->{'login'}; exit; }<br><br>header( 'Location: http://www.yoursite.com' ) ;
3. Save & Upload
Once you made the change, save and upload the file back up to the server. Now when a person visits their PURL, the visit will be tracked in Purlem, and immediately redirect them to your website.
If you need help with any of this, you can email us support@purlem.com